'use strict';

/**
 * Read the documentation (https://strapi.io/documentation/3.0.0-beta.x/concepts/controllers.html#core-controllers)
 * to customize this controller
 */

module.exports = {
  countId: async ctx=> {
    return strapi.services.comment.count({article_id:ctx.params.id});
  },
};
